/** ***********************************************************************
*  $Id: $
*
*  COPYRIGHT @2008 CSS CORP PVT LTD
*          
*  This program is free software; you can redistribute it and/or modify it under the terms of 
*  version 2 of the GNU General Public License as published by the Free Software 
*  Foundation.
*
*  The above copyright notice and this permission notice shall be included in all copies 
*  or substantial portions of the Software.
*
*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
*  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
*  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
*  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
*  DEALINGS IN THE SOFTWARE.
*
************************************************************************* */

package com.css.ctg.tulip.exception;

import com.css.ctg.tulip.util.TulipLogger;

/**
 * This is the exception class for Tulip Framework. All the framework classes would throw this exception
 * 
 * 
 * @version $Rev:
 * 			$
 *
 */

public class TulipException extends Throwable {
	
	/**
	 * Overloaded constructor to log the exception.
	 * 
	 * @param className
	 * @param t
	 */
	
	public TulipException(String className, Throwable t) {		
		TulipLogger.log(className,TulipLogger.error , t.getMessage(), t);
	}
	
	/**
	 * Overloaded constructor to log the exception.
	 * 
	 * @param className
	 * @param t
	 */
	
	public TulipException(String className, String errorMessage) {		
		TulipLogger.log(className,TulipLogger.error , errorMessage);
	}
}
